// components/select-map/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    markers: [],
    longitude: 0,
    latitude: 0,
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    const self = this
    wx.getLocation({
      type: 'gcj02',
      success: function(res) {
        self.setData({
          longitude: res.longitude,
          latitude: res.latitude
        })
      },
    })
  },

  onclickMarker(e) {
    console.log(e)
  },

  onclickPoi(e) {
    console.log(e)
  },

  onclickMap(e) {
    console.log(e)
  },
})